﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <title>投诉建议</title>
    <meta name="Keywords" content="网络购物，网上超市，网上购物，购物，网上商店，购物商城,购物网，超市网,世博会门票购买" />
    <meta name="Description" content="用鼠标逛超市，不用排队，方便实惠送上门，网上购物新生活。" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="/@V5.Config.TemplatePath/css/index.css"/>
    <link type="text/css" rel="stylesheet" href="/@V5.Config.TemplatePath/css/product_detail.css"/> 
    <script src="/@V5.Config.TemplatePath/javascript/jquery.min.js" type="text/javascript"></script>
    <script src="/@V5.Config.TemplatePath/javascript/Comon.js" type="text/javascript" charset="UTF-8"></script>
    <script src="/@V5.Config.TemplatePath/javascript/loading/loading_source.js" type="text/javascript" charset="UTF-8"></script>
     @V5.Html.Partial("includes/tView")
</head>
<body>
    @V5.Html.Partial("includes/header") 
   
    <div class="wrap clearfix">
         <div id="articlebox"> 
        <div id="wordarea" > 
          <div style="margin:0 auto;width:560px;margin-bottom:10px"><span style="font-size:14px">标题：</span>
          <span><input type="text" style="width:500px;height:20px;line-height:20px" id="txt_Title" /></span></div>

          <div style="margin:0 auto; width:560px;margin-bottom:10px"><span style="font-size:14px">内容：</span>
          <span><textarea style="width:500px;height:300px;" id="txt_Content"></textarea></span></div>

          <div style="margin:0 auto;width:560px;margin-bottom:10px"><span style="font-size:14px">投诉人：</span>
          <span><input type="text" style="width:150px;height:20px;line-height:20px" id="txt_Name" /></span></div>

          <div style="margin:0 auto; width:550px; text-align:center">
            <a href="javascript:;" onclick="SendMsg()" style="background:#999; width:150px;height:30px;display:block;color:White;line-height:30px;font-size:14px; margin:0 auto; font-weight:bold">提交</a>
          </div>
        </div>
    </div>
    </div>
    @V5.Html.Partial("includes/Footer")     
</body>
</html>
<script>
    var SendMsg = function () {
        var title = $("#txt_Title");
        var content = $("#txt_Content");
        var name = $("#txt_Name");


        if ($.trim(title.val()) == "") {
            msg("请输入标题");
            title.focus();
            return;
        }


        if ($.trim(content.val()) == "") {
            msg("请输入内容");
            content.focus();
            return;
        }

        if ($.trim(name.val()) == "") {
            msg("请输入名称");
            name.focus();
            return;
        }


        showLoading();

        $.ajax({
            type: "POST",
            url: "/SaveComplaint.aspx",
            data: "Title=" + title.val() + "&Content=" + content.val() + "&Name=" + name.val(),
            success: function (data) {
                if (data == "0") {
                    msg("添加成功！我们将尽快处理");
                    window.location.href = '/index.aspx';
                }
                else
                    msg(data);
            },
            complete: function () {
                hideLoading();
            }
        });

    }

</script>